from ultralytics import YOLO
##yolo predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg"
# model = YOLO("./runs/detect/train2/weights/best.pt")  # Load a pretrained YOLOv8 model
model = YOLO("./runs/detect/train7/weights/train16__11ngpu_6000_ear_plate_door_0.795_epoch300_bc32_nc12.pt")
# 使用模型进行预测
# results = model(source="aaa.mp4",save=False,show=True,imgsz=200)
# results = model('test.jpg', save=True)
# print(results)  # 打印结果